#!/bin/bash

echo "=== iSCSI Connection Status Check ==="

echo "Target IQN: iqn.2025-10.cn.edu.yangmingjun:disk1"

echo "Initiator IQN: iqn.2025-10.cn.edu.yangmingjun:client1"

echo ""



echo "=== iSCSI Session Details ==="

iscsiadm -m session -P 3



echo ""

echo "=== Block Devices Information ==="

lsblk



echo ""

echo "=== iSCSI Node Information ==="

iscsiadm -m node



echo ""

echo "=== Verification Complete ==="
